{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fmodern\fprq6\fcharset134 \'cb\'ce\'cc\'e5;}{\f1\fnil\fprq2\fcharset134 \'cb\'ce\'cc\'e5;}{\f2\froman\fprq2\fcharset0 Times New Roman;}}
{\colortbl ;\red255\green0\blue0;\red255\green0\blue255;\red0\green0\blue255;\red0\green0\blue128;\red0\green128\blue128;}
{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\nowidctlpar\cf1\lang2052\b\f0\fs24\'d3\'f4\'bd\'f0\'cf\'e3\'ec\'e1\'bc\'bc\'ca\'f5 \ul\b0\f1\fs21\'b1\'e0\'b3\'ccVIP\'bd\'cc\'b3\'cc\lang1033\f2\par
\lang2052\b\f1\fs32 www.yjxsoft.com\fs21\par
\b0\fs18\'d7\'a8\'d2\'b5\'b5\'c4\'b1\'e0\'b3\'cc\'bc\'bc\'ca\'f5\'c5\'e0\'d1\'b5\'bb\'f9\'b5\'d8 \lang1033\f2\par
\lang2052\f1\'ce\'d2\'c3\'c7\'b5\'c4\'bf\'da\'ba\'c5\'a3\'ba\'be\'f8\'b6\'d4\'b2\'bb\'d2\'bb\'d1\'f9\'b5\'c4\'bd\'cc\'b3\'cc\'a3\'a1\'be\'f8\'b6\'d4\'b2\'bb\'d2\'bb\'d1\'f9\'b5\'c4\'ca\'b5\'d5\'bd\'cc\'e5\'d1\'e9\'a3\'a1\'c7\'e5\'ce\'fa\'b5\'c4\'cb\'bc\'c2\'b7!\'cf\'b8\'d6\'c2\'c8\'ab\'c3\'e6\'b5\'c4\'bd\'b2\'bd\'e2\'a3\'a1\'c8\'c3\'c4\'e3\'b8\'d0\'b5\'bd\'d1\'a7\'cf\'b0\'d4\'ad\'c0\'b4\'bf\'c9\'d2\'d4\'d5\'e2\'c3\'b4\'bc\'f2\'b5\'a5\'a3\'a1\lang1033\f2\par
\lang2052\f1\'b6\'af\'bb\'ad\'bd\'cc\'b3\'cc\'d6\'bb\'ca\'c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c6\'b7\'d4\'da\'b1\'b3\'b0\'fc\'d6\'d0\'b5\'c4\'cf\'c2\'b1\'ea int \cf3\b GetGoodsIndex\cf2\b0 (char* name);\par
              c\'a1\'a2useGoods(\cf3\b GetGoodsIndex\cf2\b0 ("\'bd\'f0\'b4\'b4\'d2\'a9(\'d0\'a1)");\par
\pard\cf3\f0\fs16\par
\par
\pard\nowidctlpar\b\f1\fs20  3.6.4\'a1\'a2\'cd\'ea\'c9\'c6\'ca\'db\'ce\'ef\'b9\'a6\'c4\'dc\par
        \cf2   1\'a1\'a2\'b9\'b9\'bd\'a8\'ba\'af\'ca\'fdint FindIndex(char* name);\par
            \cf5  FindIndex//\'d3\'c3\'c0\'b4\'b2\'e9\'d1\'af\'d6\'b8\'b6\'a8\'ce\'ef\'c6\'b7\'c3\'fbname\'d4\'da\'b1\'b3\'b0\'fc\'d6\'d0\'b5\'c4\'ce\'bb\'d6\'c3\par
\cf2           2\'a1\'a2\'c0\'ac\'bb\'f8\'ce\'ef\'c6\'b7\'c7\'e5\'b5\'a5\par
\pard           3\'a1\'a2\'b1\'e9\'c0\'fa\'b3\'f6\'ca\'db\'cb\'f9\'d3\'d0\'c0\'ac\'bb\'f8\'ce\'ef\'c6\'b7SellGoods   \par
          4\'a1\'a2\'bc\'af\'b3\'c9\'b5\'bdGameproc.h\par
\par
\cf3 int GetGoodsIndex(const char* name)//\'bb\'f1\'c8\'a1\'ce\'ef\'c6\'b7\'d4\'da\'b1\'b3\'b0\'fc\'c0\'ef\'ce\'bb\'d6\'c3\'cf\'c2\'b1\'ea \'a3\'ac\'c8\'e7\'b9\'fb\'b7\'b5\'bb\'d8-1 \'d4\'f2\'b1\'ed\'ca\'be\'b2\'bb\'b4\'e6\'d4\'da\par
\{\par
 char * CurGoodName;\par
 int iaddr;\par
 for (int i=0;i<=35;i++) // 36\'b8\'f1\par
\{\par
 iaddr=i*4;\par
 _asm\par
 \{\tab\par
     mov ecx,GoodsBase;\par
     mov ecx,[ecx] //mov ecx,[0x45BA62C]\tab\par
\tab  add ecx,iaddr // ecx,[0x45BA62C]+i*4\par
\tab  add ecx,0x3d8 // ecx,[0x45BA62C]+i*4+3d8\tab\par
\tab  mov ecx,[ecx] // ecx,[[0x45BA62C]+i*4+3d8]\tab\par
\tab  mov iaddr,ecx //\'ce\'ef\'c6\'b7\'b6\'d4\'cf\'f3iaddr=[[0x45BA62C]+i*4+3d8]\tab\par
 \} \par
 if (iaddr>0)\par
 _asm\par
 \{\par
\tab  mov ecx,iaddr // ecx=[[0x45BA62C]+i*4+3d8]\tab\par
\tab  add ecx,0x58  // ecx =[[0x45BA62C]+i*4+3d8]+58\tab\par
\tab  mov CurGoodName,ecx //CurGoodName=[[0x45BA62C]+i*4+3d8]+58\tab\par
    \par
 \}\par
 if (strcmp(name,CurGoodName)==0) \{ return i;\} //\'b1\'e9\'c0\'fa\'d5\'d2\'b5\'bd \'d6\'b8\'b6\'a8\'ce\'ef\'c6\'b7\'ba\'f3 \'b7\'b5\'bb\'d8\'c6\'e4\'ca\'fd\'d7\'e9\'cf\'c2\'b1\'ea\par
\} //end for\par
return -1;//\'b1\'e9\'c0\'fa\'b1\'b3\'b0\'fc \'ce\'b4\'d5\'d2\'b5\'bd\'d6\'b8\'b6\'a8\'ce\'ef\'c6\'b7\par
\}//end GetGoodsIndex;\cf2\par
\cf3 int sellgoods(char * name)\par
\{\par
\tab // TODO: Add your control notification handler code here\par
\tab int index=GetGoodsIndex(name);\par
\tab if (index<0)\{return -1;\tab\} //\'d4\'da\'b1\'b3\'b0\'fc\'c0\'ef\'b2\'bb\'b4\'e6 \'c3\'fb\'bd\'d0name\'b5\'c4\'ce\'ef\'c6\'b7 \'d4\'f2\'cd\'cb\'b3\'f6\par
\tab int goodbase=index*4;\par
_asm\par
\{\par
mov ecx,0x4715294 \par
mov ecx,[ecx]\par
add ecx,goodbase //\'b3\'f6\'ca\'db\'b5\'da3\'b8\'f1\par
add ecx,0x3D8\par
mov ecx,[ecx] //\'c8\'a1\'c4\'b3\'d2\'bb\'b8\'f1\'ce\'ef\'c6\'b7\'bb\'f9\'d6\'b7\par
lea ebx,sdata\par
 mov eax,[ecx+0x4C] \par
 mov [ebx+0x0e],eax\par
 mov eax,0x4713410 \par
 mov eax,[eax] \par
 mov [ebx+0x1a],eax\par
 mov eax,[ecx+0x50]\par
 mov [ebx+0x22],eax\par
 mov eax,[ecx+0x54]\par
 mov [ebx+0x26],eax\par
 mov eax,[ecx+0x4c]\par
 mov [ebx+0x2A],eax\par
 mov eax,1    //\'b3\'f6\'ca\'db\'ca\'fd\'c1\'bf\par
 mov eax,[ECX+0x4A0]\par
 mov [ebx+0x12],eax \par
 mov [ebx+0x2E],eax //\'b3\'f6\'ca\'db\'ca\'fd\'c1\'bf\par
 mov eax,[ecx+0x4A8]\par
 mov [ebx+0x39],eax\par
 mov eax,index  //\'d2\'aa\'b3\'f6\'ca\'db\'b1\'b3\'b0\'fc\'c0\'ef\'ce\'ef\'c6\'b7\'cb\'f9\'d4\'da\'b5\'c4\'b8\'f1\'ca\'fd\par
 mov [ebx+0x37],eax //[esp+???]\par
\par
push 0x76\par
lea edx,sdata;\par
push edx\par
MOV ECX,0x1480A68\par
mov ecx,[ecx]\par
mov eax,0x0043D100\par
call eax\par
\}\par
 return 1;\par
\}\cf2\par
\par
void CPAGE1::OnBUTTONSellGoods() \par
\{ \par
 \par
char pname[256]; //CSting pname;\par
\tab int i;\par
\tab for (i=0;i<m_monlist_ctl.GetCount();i++)\par
\tab\{ m_monlist_ctl.GetText(i,pname);  // m_monlist_ctl.GetText(i,pname.GetBuffer(22));\par
 \par
\tab sellgoods(pname);//("\'bd\'f0\'b4\'b4\'d2\'a9(\'d0\'a1)"); //\par
 \par
\tab\}\par
\}\par
\par
               \cf3\par
}
 